/**
 * 发送手机短信验证码
 * @param phone 手机号
 * @param captcha 图形验证码
 * @param type 场景
 */

export const sendCode = async (
  options: {
    phone: string,
    captcha: string,
    type: 'register' | 'login' | 'change'
  }
) => {
  return await useApi<null>('/notify/v1/send_code', {
    method: 'post',
    body: options,
  });
};

